package com.cdu.ai_intelligent_teaching_and_training_system.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class Exam {
    private Long examId;
    
    private Long courseId; // 关联Course表的外键
    
    @NotBlank(message = "考试标题不能为空")
    private String title;
    
    private String description;
    
    @NotNull(message = "考试日期不能为空")
    private LocalDateTime examDate;
    
    private LocalDateTime createdTime;
} 